import React from 'react'

const Index = React.lazy(()=>import('../pages/Index'))
const Hot = React.lazy(()=>import('../pages/Hot'))
const Play = React.lazy(()=>import('../pages/Play'))
const Search = React.lazy(()=>import('../pages/Search'))

const routers = [
    {
        path: "/",
        redirect: '/index',
        exact: true
    },
    {
        path: "/index",
        component: Index,
        exact: false
    },
    {
        path: "/hot",
        component: Hot,
        exact: false
    },
    {
        path: "/play/:id",
        component: Play,
        exact: false
    },
    {
        path: "/search",
        component: Search,
        exact: false
    }
]

export default routers